// +----------------------------------------------------------------------
// | haicao [ 服务器API管理框架 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2018 https://hc.shangning.org.cn All rights reserved.
// +----------------------------------------------------------------------
// | Author: Yohann <492238647i@qq.com>
// +----------------------------------------------------------------------
module.exports = class extends think.Controller {
  __before() {
    this.$config = {
      params: {
        // client: 'news'
      }
    }
    this.$url = think.global.baseUrl + think.global.apilist[this.ctx.path]
    console.log('\u001b[31m '+this.$url+' \u001b[39m');
    if ( !(this.ctx.path === '/api/login/login' || this.ctx.path === '/api/login/islogin') ) {
      // console.log(this.ctx.header)
    }
  }
};
